using System;
using System.Web;

namespace PlugNT.Cms.Page
{
    public class SitePager : System.Web.UI.Page
    {
        internal TplDictionary<object> _viewData = null;





        public TplDictionary<object> ViewData
        {
            get { return _viewData; }
        }







        public void AssignData(string key, object obj)
        {
            if (this.ViewData == null)
            {
                this._viewData = new TplDictionary<object>();
            }
            this.ViewData[key] = obj;
        }






        public virtual bool IsLogined()
        {
            string username = PlugNT.Cms.Custom.KeyFlags.SessionUser;
            return Session[username] != null;
        }






        public string GetUserName()
        {
            string username = PlugNT.Cms.Custom.KeyFlags.SessionUser;
            if (Session[username] != null)
            {
                return Session[username].ToString();
            }
            else
            {
                return "";
            }
        }


    }
}





